from messAround.util.database import BaseModel, BaseModelField
from sqlalchemy import Column
from sqlalchemy import VARCHAR, Integer


# 豆瓣24小时话题
class DoubanTopicModel(BaseModel.base, BaseModelField):
    __tablename__ = 'hot_douban_topic'
    title = Column(VARCHAR(1000))
    link = Column(VARCHAR(1000))
    hot_index = Column(VARCHAR(1000))


# 豆瓣电影
class DoubanMovieModel(BaseModel.base, BaseModelField):
    __tablename__ = 'hot_steam'
    name = Column(VARCHAR(255))
    online = Column(Integer, default=0)
    online_max = Column(Integer, default=0)
    app_link = Column(VARCHAR(1000))
